package cn.imjzm.runcarserve.mapper;

import cn.imjzm.runcarserve.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface LoginMapper {
    // 用户登录相关方法
    User selectByPhone(@Param("phone") String phone);
    User selectByUsername(@Param("username") String username);
    User selectByEmail(@Param("email") String email);
    // 其他查询方法
    User findByEmail(@Param("email") String email);  // 统一命名规范

    void changePwd(@Param("newpwd") String newpwd,@Param("email") String email);
}
